using System;
using System.Collections.Generic;

namespace Ghasam.Business.Domain.Entity
{
    /// <summary>
    /// EmployeePayment object for NHibernate mapped table EmployeePayment.
    /// </summary>
    [Serializable]
    public class EmployeePayment
    {


        private Employee _Employee;
        private System.Boolean? _IsFormal;
        private System.Int32? _GrossPay;
        private System.Int32? _NetPay;
        private System.DateTime? _ModifyStamp;
        private IList<AdjustmentPayment> _AdjustmentPayments = new List<AdjustmentPayment>();

        public EmployeePayment()
        {
        }

        public int Id { get; set; }

        public virtual Employee Employee
        {
            get { return _Employee; }
            set { _Employee = value; }
        }

         public virtual System.Boolean? IsFormal {
             get { return _IsFormal; }
             set { _IsFormal = value;}
         }

         public virtual System.Int32? GrossPay {
             get { return _GrossPay; }
             set { _GrossPay = value;}
         }

         public virtual System.Int32? NetPay {
             get { return _NetPay; }
             set { _NetPay = value;}
         }

         public virtual System.DateTime? ModifyStamp {
             get { return _ModifyStamp; }
             set { _ModifyStamp = value;}
         }

         public virtual IList<AdjustmentPayment> AdjustmentPayments{
             get { return _AdjustmentPayments; }
             set { _AdjustmentPayments = value; }
         }


        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }

     }
}
